//
//  MainAppController.h
//  iSwitchView
//
//  Created by Ronnie on 08-12-3.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#define _HAVE_TYPE_BOOL
#import "include/libfetion.h"
#import "FXDataCenter.h"

@class MainWindowController;


@interface MainAppController : NSObject {
	MainWindowController *	mainWindowController;
	FXDataCenter*			myFetionData;
}

- (void)setMainWindowController:(MainWindowController*)mainWindowCtrl;
- (MainWindowController*)getMainWindowController;
- (void)fxLogin:(NSString*)user password:(NSString*)passwd status:(int)loginState;
- (void)fxCancelLogin;
- (void)requestFXDataFromNet;
- (FXDataCenter*)getFxData;

- (void)addNotificationResponser;
- (void)notifyMainWindowToResize;
- (void)notifySomeBuddyChangeStatus:(long)uid;
- (void)notifyGetSomeBuddyMessage:(long)uid;
- (void)notifyMoveGroupOKById:(long)uid ToGroup:(int)groupId;
- (void)notifyChangeStatusOK:(int)status;
- (void)notifyChangeUserLocalName:(long)uid;
- (void)notifyRenameGroup:(int)groupId;
- (void)notifyDeleteBuddy:(long)uid;
- (void)notifyDeleteGroup:(int)groupId;
- (void)notifyAddGroup:(int)groupId;
- (void)notifyAddBuddy:(long)uid toGroup:(int)gid;
@end


void My_EventListener(int message, WPARAM wParam, LPARAM lParam, void* args);
void Sys_EventListener(int message, WPARAM wParam, LPARAM lParam, void* args);
